//
//  TTNoResultManager.h
//  ExhibitionHall
//
//  Created by 王洋 on 2019/7/8.
//  Copyright © 2019 王洋. All rights reserved.
//

/*
 ///////////////////////////////////////////Common View State//////////////////////////////////////
 #define  kTTViewStateNone                 0
 #define  kTTViewStateLoading              1
 #define  kTTViewStateNetError             2
 #define  kTTViewStateDataError            3
 #define  kTTViewStateNoData               4
 #define  kTTViewStateTimeOut              5
 #define  kTTViewStateLocationError        6
 #define  kTTViewStatePhotosError          7
 #define  kTTViewStateMicrophoneError      8
 #define  kTTViewStateCameraError          9
 #define  kTTViewStateContactsError        10
 #define  kTTViewStateSearchEmpty          11
 #define  kTTViewStateNoMessage            12
 #define  kTTViewStateNotLogin             13
 #define  kTTViewStateNoOrderData          14
 #define  KTTEViewStateSupervisionOther    15
 #define  KTTEViewStateCantSupervision     16
 */


#define  kTTViewStateNone                 0
#define  kTTViewStateLoading              1
#define  kTTViewStateNetError             2
#define  kTTViewStateDataError            3
#define  kTTViewStateNoData               4
#define  kTTViewStateTimeOut              5

#define  kTTViewStateCategoryManageNoData             6
#define  kTTViewStateMyProductNoData                  7
#define  kTTViewStateMyLiveBroadcastNoData            8
#define  kTTViewStateStoreLiveBroadcastNoData         9


#define  kTTViewStateMyCollectNoData                  10



#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN



@interface TTNoResultManager : NSObject

+(instancetype)shareManager;

/**
 显示结果页
 
 @param view 父View
 @param code 错误码
 @param btnTitle 按钮标题
 @param didPressButton 按钮事件
 */
- (void)showNoResultWithStateInView:(UIView *)view
                          errorCode:(NSInteger)code
                           btnTitle:(NSString *)btnTitle
                     didPressButton:(void (^)(void))didPressButton;

/**
 隐藏无结果页面
 
 @param view 添加结果页时的宿主视图
 */
- (void)hideNoResultWithView:(UIView*)view;

@end

NS_ASSUME_NONNULL_END
